package com.xiongtian.springframework.core.io;

/**
 * @Author: xiongtian
 * @CreateTime: 2025-03-27  10:39
 * @Version: 1.0
 * @Description: 资源加载接口
 */

public interface ResourceLoader {

    /**
     * Pseudo URL prefix for loading from the class path: "classpath:"
     */
    String CLASSPATH_URL_PREFIX = "classpath:";

    /**
     * 根据资源路径获取资源
     *
     * @param location 资源路径
     * @return Resource
     */
    Resource getResource(String location);
}
